package com.gzxw.mogublog.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gzxw.mogublog.commons.entity.Admin;
import com.gzxw.mogublog.xo.vo.AdminVO;

import java.util.List;

public interface AdminService extends IService<Admin> {

    Admin getAdminById(String adminUid);


/**
 * 添加在线用户
 *
 * @param admin            管理员
 * @param expirationSecond 过期时间【秒】
 */
void addOnlineAdmin(Admin admin,Long expirationSecond);

    IPage<Admin> getList(AdminVO adminVO);

    String restPwd(AdminVO adminVO);

    String addAdmin(AdminVO adminVO);

    String editAdmin(AdminVO adminVO);

    String deleteBatchAdmin(List<String> adminUids);
}
